<include file="Public/ace_header" />
<div class="row">
    <form class="form-horizontal" role="form" method="post" style="padding-left: 10px;padding-right: 10px;">
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="name"> 姓名 </label>
            <div class="col-xs-12 col-sm-6">
                <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100"  id="name" name="name"  value="{$model['name']}" readonly/ >
                        <i class=""></i>
                    </span>
            </div>
            <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="name">身份证号</label>
            <div class="col-xs-12 col-sm-6">
                <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100"  id="identity" name="identity"  value="{$model['identity']}" readonly/ >
                        <i class=""></i>
                    </span>
            </div>
            <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
        </div>
        <foreach name="fee" item="f">
              <php>
                $tuition=D('Tuition')->where(['id'=>$f['tuition_id']])->find();
                $term=D('term')->where(['id'=>$tuition['term_id']])->find();
            </php>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="number">应交
                    {$term['name']}
                </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" id="should" name="should"  value="{$tuition['money']}"  readonly/>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="over"> 实缴金额 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" id="over" name="over"  value="{$f['over']}" readonly/>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
            </div>
        </foreach>
    </form>
    <div class="col-md-6 col-md-offset-3">
        <div>
            <h3>交费记录：</h3></div>
        <div class="table-responsive">
            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th class="center">日期</th>
                        <th class="center">流水号</th>
                        <th class="center">交费项</th>
                        <th class="center">金额总和</th>
                        <th class="center">缴费方式</th>
                        <th class="center">制单人</th>
                </thead>
                <tbody>
                    <foreach name="record" item="fe">
                        <tr>
                            <td class="center">{$fe['time']|date="Y-m-d H:i:s",###}</td>
                            <td class="center">{$fe['water']}</td>
                            <td class="center">
                                <?=M('Term')->find($fe["term_id"])['name'];?>
                            </td>
                            <td class="center">{$fe['money']}</td>
                            <td class="center">{$fe['way']}</td>
                            <td class="center">{$fe['name']}</td>
                        </tr>
                    </foreach>
                </tbody>
            </table>
        </div>
        <div>
            <div>
                <a href="{:U('Record/RecordOption',['student_id'=>$model['id']])}">
                    <button class="btn btn-info btn-sm" type="button">
                        <i class="icon-ok bigger-110"></i> 打印
                    </button>
                </a>
                &nbsp; &nbsp; &nbsp;
                <a href="{:U('Record/RecordLook')}">
                    <button class="btn btn-sm return" type="button">
                        <i class="icon-reply bigger-110"></i> 返回
                    </button>
                </a>
            </div>
        </div>
    </div>
</div>
<include file="Public/ace_footer" />
